package com.jimmy.sms.common.service.impl;

import com.jimmy.sms.common.properties.SmsProperties;
import com.jimmy.sms.common.service.SmsSender;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author create by jimmy 2116398125@qq.com
 * @package com.jimmy.sms.common.service.impl
 * @date 2024/5/15 9:14 PM
 */
public class AliyunSmsSenderImpl implements SmsSender {

    private SmsProperties.SmsMessage smsMessage;

    public AliyunSmsSenderImpl(SmsProperties.SmsMessage smsMessage) {
        this.smsMessage = smsMessage;
    }

    @Override
    public boolean send(String msg) {
        System.out.println(smsMessage.toString() + "开始发送短信==》短信内容：" + msg);
        return true;
    }
}
